package espacokidsadm.modelo.negocio;

import espacokidsadm.modelo.dao.impl.ResponsavelDAO;
import espacokidsadm.modelo.entity.Responsavel;


public class ResponsavelRN {
	
	private ResponsavelDAO dao;
	
	public ResponsavelRN(){
		this.dao = new ResponsavelDAO();
	}
	
	
	public void salvar(Responsavel responsavel){
		this.dao.salvar(responsavel);
	}
	
	
	public static synchronized Responsavel criarNovoResponsavelAluno(){
		
		Responsavel responsavel = new Responsavel();
		responsavel.setPessoa(PessoaRN.criarNovaPessoa());
		
		return  responsavel;
		
	}
	
}
